package com.pearlsoft.rms;

import com.pearlsoft.commons.utils.ContextUtil;

/**
 * 
 * @author rainshow
 * @Created 2012-5-27 下午02:33:37
 */

public class RmsHelper {

    public static final String acquireTicket(String orgName, String vdcName, String appName, String vm) {
        VcloudManager cloudManager = (VcloudManager) ContextUtil.getBean("vcloudManager");
        try {
            return cloudManager.acquireTicket(orgName, vdcName, appName, vm);
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
    }
}
